package com.qf.service;

import com.qf.mapper.UserMapper;
import com.qf.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 汤奇
 * @version V1.0
 * @Project BookPro
 * @Package com.qf.service
 * @Description:
 * @Date 2022/6/6 18:34
 */
@Service("service2")
public class UserServiceImpl2 implements UserService{
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findUserAll() {
        System.out.println("======UserServiceImpl2是UserService的第二个实现类=======");

        return userMapper.findUserAll();
    }

    @Override
    public void updateUser(User user) {
        userMapper.updateUser(user);
    }
}
